/*
 * Created by JFormDesigner on Sat Oct 29 20:26:39 CST 2022
 */

package com.liyu.ui;

import java.awt.*;
import javax.swing.*;

/**
 * @author unknown
 */
public class LogonFrame extends JFrame {
    public LogonFrame() {
        initComponents();
    }

    private void initComponents() {
        // JFormDesigner - Component initialization - DO NOT MODIFY  //GEN-BEGIN:initComponents  @formatter:off
        panel1 = new JPanel();
        label1 = new JLabel();
        panel2 = new JPanel();
        panel3 = new JPanel();
        label2 = new JLabel();
        textField1 = new JTextField();
        panel4 = new JPanel();
        label3 = new JLabel();
        textField2 = new JTextField();
        panel5 = new JPanel();
        label4 = new JLabel();
        passwordField1 = new JPasswordField();
        panel6 = new JPanel();
        label5 = new JLabel();
        passwordField2 = new JPasswordField();
        panel7 = new JPanel();
        button1 = new JButton();
        label6 = new JLabel();
        button2 = new JButton();

        //======== this ========
        setTitle("\u7528\u6237\u6ce8\u518c");
        Container contentPane = getContentPane();
        contentPane.setLayout(new BorderLayout());

        //======== panel1 ========
        {
            panel1.setLayout(new FlowLayout(FlowLayout.LEFT));

            //---- label1 ----
            label1.setText(" tip\uff1a\u8d26\u53f7id\u957f\u5ea6<=20; \u5bc6\u7801\u957f\u5ea6<=20");
            panel1.add(label1);
        }
        contentPane.add(panel1, BorderLayout.NORTH);

        //======== panel2 ========
        {
            panel2.setLayout(null);

            //======== panel3 ========
            {
                panel3.setLayout(new FlowLayout(FlowLayout.LEFT));

                //---- label2 ----
                label2.setText("\u8d26\u53f7id\uff1a");
                label2.setPreferredSize(new Dimension(56, 17));
                panel3.add(label2);

                //---- textField1 ----
                textField1.setPreferredSize(new Dimension(250, 30));
                panel3.add(textField1);
            }
            panel2.add(panel3);
            panel3.setBounds(30, 5, 330, 45);

            //======== panel4 ========
            {
                panel4.setLayout(new FlowLayout(FlowLayout.LEFT));

                //---- label3 ----
                label3.setText("\u8bbe\u7f6e\u6635\u79f0\uff1a");
                panel4.add(label3);

                //---- textField2 ----
                textField2.setPreferredSize(new Dimension(250, 30));
                panel4.add(textField2);
            }
            panel2.add(panel4);
            panel4.setBounds(30, 55, 330, 45);

            //======== panel5 ========
            {
                panel5.setLayout(new FlowLayout(FlowLayout.LEFT));

                //---- label4 ----
                label4.setText("\u5bc6\u7801\uff1a");
                label4.setPreferredSize(new Dimension(56, 17));
                panel5.add(label4);

                //---- passwordField1 ----
                passwordField1.setPreferredSize(new Dimension(160, 30));
                panel5.add(passwordField1);
            }
            panel2.add(panel5);
            panel5.setBounds(30, 100, 330, 45);

            //======== panel6 ========
            {
                panel6.setLayout(new FlowLayout(FlowLayout.LEFT));

                //---- label5 ----
                label5.setText("\u786e\u8ba4\u5bc6\u7801\uff1a");
                panel6.add(label5);

                //---- passwordField2 ----
                passwordField2.setPreferredSize(new Dimension(160, 30));
                panel6.add(passwordField2);
            }
            panel2.add(panel6);
            panel6.setBounds(30, 150, 330, 45);

            //======== panel7 ========
            {
                panel7.setLayout(new FlowLayout());

                //---- button1 ----
                button1.setText("\u5df2\u6709\u8d26\u53f7\uff0c\u8fd4\u56de");
                panel7.add(button1);

                //---- label6 ----
                label6.setPreferredSize(new Dimension(50, 0));
                panel7.add(label6);

                //---- button2 ----
                button2.setText("\u6ce8\u518c");
                panel7.add(button2);
            }
            panel2.add(panel7);
            panel7.setBounds(85, 195, 305, 40);

            {
                // compute preferred size
                Dimension preferredSize = new Dimension();
                for(int i = 0; i < panel2.getComponentCount(); i++) {
                    Rectangle bounds = panel2.getComponent(i).getBounds();
                    preferredSize.width = Math.max(bounds.x + bounds.width, preferredSize.width);
                    preferredSize.height = Math.max(bounds.y + bounds.height, preferredSize.height);
                }
                Insets insets = panel2.getInsets();
                preferredSize.width += insets.right;
                preferredSize.height += insets.bottom;
                panel2.setMinimumSize(preferredSize);
                panel2.setPreferredSize(preferredSize);
            }
        }
        contentPane.add(panel2, BorderLayout.CENTER);
        pack();
        setLocationRelativeTo(getOwner());
        // JFormDesigner - End of component initialization  //GEN-END:initComponents  @formatter:on
    }

    // JFormDesigner - Variables declaration - DO NOT MODIFY  //GEN-BEGIN:variables  @formatter:off
    private JPanel panel1;
    private JLabel label1;
    private JPanel panel2;
    private JPanel panel3;
    private JLabel label2;
    private JTextField textField1;
    private JPanel panel4;
    private JLabel label3;
    private JTextField textField2;
    private JPanel panel5;
    private JLabel label4;
    private JPasswordField passwordField1;
    private JPanel panel6;
    private JLabel label5;
    private JPasswordField passwordField2;
    private JPanel panel7;
    private JButton button1;
    private JLabel label6;
    private JButton button2;
    // JFormDesigner - End of variables declaration  //GEN-END:variables  @formatter:on
}
